//
//  LabelCollectionViewCell.m
//  B段项目自定义
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 直到世界的尽头. All rights reserved.
//

#import "LabelCollectionViewCell.h"

@implementation LabelCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        _contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        _contentLabel.textColor = [UIColor blackColor];
        _contentLabel.textAlignment = 1;
        _contentLabel.font = [UIFont systemFontOfSize:17 + FitFont];
        [_contentLabel NightWithType:UIViewColorTypeNormal];
        [self addSubview:_contentLabel];
        
        _LineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, FitConstant_YorHeight(40), frame.size.width, FitConstant_YorHeight(2))];
        [self addSubview:_LineLabel];
    }
    return self;
}

-(void)changeCellColor:(BOOL)isSelecct
{
    if (isSelecct) {
        self.contentLabel.textColor = [UIColor orangeColor];
        self.LineLabel.backgroundColor = [UIColor orangeColor];
    }
    else{
        self.contentLabel.textColor = [ThemeManage shareThemeManage].textColor;
        self.LineLabel.backgroundColor = [UIColor clearColor];
    }
}


@end
